package com.ht.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.ht.domain.bo.TbScheduleBO;
import com.ht.domain.po.*;
import com.ht.mapper.*;
import com.ht.service.ScheduleService;
import com.ht.service.TbDoctorService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

@Service
public class TbDoctorServiceImpl implements TbDoctorService {

    @Autowired
    private ScheduleService scheduleService;


    @Override
    public List<TbScheduleBO> queryExpertByDepartmentId(Long departmentId) {
        Date date = new Date();
        SimpleDateFormat sdf= new SimpleDateFormat("yyyy-MM-dd");
        String format = sdf.format(date);
        List<TbScheduleBO> tbScheduleBOS = scheduleService.queryPublicById(departmentId, format);

        return tbScheduleBOS;
    }
}
